import http from "@/utils/http";
// 获取指定客户账单列表
export function clientBill_tabList(tennatId, params) {
  return http.post(
    `/by-account-business-cost/getBill/${tennatId}`,
    params
  );
}
// 获取账单选择后得下拉列表
export function clientBill_selectBill(tennatId) {
  return http.get(
    `/by-account-business-cost/getTime/${tennatId}`,
  );
}

// 客户账单分页查询
export function clientBill_selcetList(params) {
  return http.post(
    '/by-account-business-cost/page/tenant',
    params
  );
}
// 生成指定客户账单列表
export function clientBill_createBill(tennatId, params) {
  return http.post(
    `/by-account-business-cost/generate/${tennatId}`,
    params
  );
}
// 刷新客户账单
export function clientBill_resetBill(tennatId, params) {
  return http.post(
    `/by-account-business-cost/generate/refresh/${tennatId}`,
    params
  );
}
// 获取交易明细列表
export function clientBill_getDetailList(tenantId, params) {
  return http.post(
    `/by-charged-service-items/select/tenantId/${tenantId}`,
    params
  );
}
// 导出客户列表账单 数据
export function clientBill_exportFile(params) {
  return http.blobJson(
    '/by-account-business-cost/download/excel/page/tenant',
    params
  );
}
// 导出指定客户账单明细
export function clientBill_exportDetails(tenantId, params) {
  return http.blobJson(
    `/by-charged-service-items/download/excel/tenantId/${tenantId}`,
    params
  );
}
// 导出指定客户账单列表
export function clientBill_exportList(tenantId, params) {
  return http.blobJson(
    `/by-account-business-cost/download/excel/tenantId/${tenantId}`,
    params
  );
}
// 业务类型下拉
export function clientBill_getDropDown(params) {
  return http.post(
    '/by-charged-service-items/select/dropDown',
    params
  );
}